{% extends "bases/base-nav.html" %}

{% block content %}
    <div class="container" style="width:95%">
        <div class="row">
        <!-- 侧边栏 -->
        <div class="col-md-2">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <a data-toggle="collapse" data-parent="#LogSystem"  class="collapsed">
                                <span class="glyphicon glyphicon-list-alt btn-xs"></span>主机管理</a>
                        </h4>
                    </div>
                    <div id="collapseOne" class="panel-collapse">
                        <div class="t-body">
                            <table class="table">
                                <tbody><tr><td><span class="glyphicon glyphicon-tree-conifer btn-xs"></span>
                                    <a href={% url "Index" %}>主机列表</a>
                                </td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
                            <a data-toggle="collapse" data-parent="#accordion" ><span class="glyphicon glyphicon-list-alt btn-xs"></span>用户管理</a>
                        </h4>
                    </div>
                    <div id="collapseTwo" class="panel-collapse collapse">
                        <div class="t-body">
                            <table class="table">
                                <tbody>
                                    <tr><td><span class="glyphicon glyphicon-tree-conifer btn-xs">
                                        </span><a href="">用户管理</a>
                                    </td></tr>
                                    <tr><td><span class="glyphicon glyphicon-tree-conifer btn-xs">
                                        </span><a href="">角色管理</a>
                                    </td></tr>
                                    <tr><td><span class="glyphicon glyphicon-tree-conifer btn-xs">
                                        </span><a href="">权限管理</a>
                                    </td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
            </div>
        </div>
        <div class="col-md-10">
            {% block rcontent %}{% endblock %}
        </div>
    </div>
    </div>
    <script>
        $(".panel-heading").click(function () {
            $(this).parent().siblings().find('.panel-collapse').addClass('collapse')
            $(this).next().removeClass('collapse')
        })
    </script>
{% endblock %}